package org.gordonframework.site.forms.elements.skins {
	import org.gordonframework.site.forms.elements.GElement;
	import org.gordonframework.site.forms.elements.skins.GElementSkin;
	import org.gordonframework.site.views.GLabel;	

	/**
	 * @author eriarv
	 */
	public class GTextRowSkin extends GElementSkin {



		public function GTextRowSkin() {
			super();
			label = new GLabel();
			label.wordWrap = false;
			addChild(label);
		}

		override public function update(element : GElement) : void {
			label.setDefaultTextFormat(formatFactory.getTextFormatForType(element.type));
			label.text = element.text;
		}
	}
}
